﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238

namespace Books
{
    /// <summary>
    /// An empty page that can be used on its own or navigated to within a Frame.
    /// </summary>
    public sealed partial class MainPage : Page
    {
        public MainPage()
        {
            this.InitializeComponent();
            CallServices();
        }
        private async void CallServices()
        {
            var getAllBooks = await App.CallService.GetAllBooksDataAsync(string.Empty, "100", "0");
            var getGenres = await App.CallService.GetGenresDataAsync();
            //var getSeriesList = await App.CallService.GetSeriesBooksAsync("11", "100", "0"); //Service Dang bi loi
            var getBookDetai = await App.CallService.GetBookDetailAsync("1", string.Empty);
            var searchBooks = await App.CallService.GetSearchDataBooksAsync("100", "0", "1", "o");
            var RegisterDevice = await App.CallService.GetRegistDevice("adawdasdsadsadsadqwd");
            var getRecommendBooks = await App.CallService.GetRecommendBooks("11", "10");
            var getSeriesBookDetail = await App.CallService.GetSeriesBookDetailAsync("1");
            var getWestBooksAsync = await App.CallService.GetWestBooksAsync("100");
            var getHotBooksAsync = await App.CallService.GetAllHotBooksAsync("100");
            var getBuyBooksAsync = await App.CallService.GetBuyBooksAsync("1", "adawdasdsadsadsadqwd");
            
           
        }
    }
}
